const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },
 
  data: {
     cur:1
  }, 
  attached(){
    console.log("组件进入时渲染", app.globalData.tmp  );
     this.setData({ cur: app.globalData.tmp.propertyType,    });
   },
  methods: {
    changeTab:function(event){
      var id = event.currentTarget.dataset.id
      this.setData({cur:id})
      app.globalData.tmp.propertyType = id
    }
  }
})
